home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
where154.lzh
/
where154g.doc
< prev
next >
Wrap
Text File
|
1993-05-01
|
9KB
|
220 lines
May 1993
*************************************************************************
* *
* Where Version 1.54g *
* *
* Copyright 1989, 1990, 1991, 1992, 1993 by John Preston *
* *
*************************************************************************
Chagnes from 1.53 are mainly for Where Gold, but this version also
includes the -t flag to force where not to take a subdir brach. This
can be useful if you wish to use the -x option to execute a command
that does not support wildcards, like C:Protect, but you only want to
execute the command on files in the current dir and not all the
sub directories.
Also this version of where includes the beta version of WhereGold. While
there is still a lot of things to do to WhereGold, I thought you folks
would what to take a look at how things were coming along on the project.
You do not need WhereGold to run where, but Where is MANDATORY to run where
gold.
This version is 1.3 and 2.0 compatable. Fortunatly there was not many
changes to be made to make it compatable with 2.0. Actually the older
version works under 2.0, but I changed some things I though may be less
portable just to be safe.
Some of the bugs not fixed are the slight loss of RAM due to recursive
tree building.
You may also find this program on some of the software disks with the
KRONOS hard drive contrller by MicroDyn.
Thankyou, John Preston
*------------------------------*
HISTORY:
This program was a part of a larger hard disk backup program I was
working on. I wrote Where as a way for the backup program to be able to
find the directories and files on the entire hard drive. Accidentally, I
noticed how easy it would be to add a compare routine to display certain
files of interest.
Thus Where was born!
***********************
After some preliminary testing, I enhanced Where to accept rudimentary
wildcards in the filename field. Later I improved the wildcard handling
to include both support for AmigaDOS wildcards and UNIX/MSDOS style
wildcards (Thanks Lattice for C 5.0!). On this version the last improvement
was to display the directory being searched, and if no files were found to
redraw the next directory to be searched on top of the old display. This
is a nice feature and was suggested by Eric Calcagni. (i.e. You are not
left in awe at the hard drive light flashing madly at you while nothing
appears to be happening. Where shows you when it moves from one directory
to another!)
*************************************************************************
* *
* W h e r e i s a c c e p t e d b y t h e p u b l i c *
* *
*************************************************************************
Now that Where has been in limited use by a few of my friends, some
enhancements have been added or suggested. One of these suggestions is
in this version. I want to thank Andre Frech of Commodore and Eric Calcagni
of Computer Bar in Pensacola FL for their suggestions.
1) Where will now give a complete listing of files it finds including
file attribute flags, s-p-h-a-r-w-e-d (see AmigaDOS Protect
Command), date, time, blocks, bytes and filename. This is the -l
or list option.
2) All option flags now are preceeded with a dash and parameters can
appear in any order. A bad flag brings up a HELP menu.
so,
Where DH0:#? -l
is the same as
Where -l DH0:#?
NOTE: The flags -c and -r are only partially implemented and should not be
used in this release.
************************
* Intricacies of Where *
************************
Here are some example CLI entries:
----------------------------------------------------------------------------
This will search the current drive/directory and all subdirectories
associated with that drive/directory.
1> Where myfile
----------------------------------------------------------------------------
This will search all directories on the hard drive DH0: for all files
ending in .pic
1> Where DH0:#?.pic
----------------------------------------------------------------------------
This will search all the directories in the directory df0:devs for all
files beginning with printer
1> Where DF0:devs/printer#?
----------------------------------------------------------------------------
This will search all the directories in the current directory and all
of its subdirectories for any file
1> Where #?
----------------------------------------------------------------------------
This will search DH0: for all files ending in .c and pause until ENTER
or RETURN is pressed
1> Where DH0:#?.c -p
----------------------------------------------------------------------------
This will search directories devs: and rad:devs for all files ending in
.device and give a long listing of the file's info.
1> Where devs:#?.device rad:#?.device -l
----------------------------------------------------------------------------
This will search DH0: for the file PAINT_PROG and then search DH1: for
the files MyPics#? It will pause on each hit and give a long listing.
1> Where DH0:PAINT_PROG DH1:MyPics#? -p -l
----------------------------------------------------------------------------
To abort the program while it is running type CTRL-C.
----------------------------------------------------------------------------
To execute a command on a file that Where has found enter the following
1> Where Dh0:*.pic -x "Showprog %s"
In this example we wish to show all IFF pics with filenames ending in
.pic and we want to use our favorite show program 'showprog'. Notice
the %s is where the ENTIRE PATH AND FILENAME will be inserted in the
command string to be passed to our showprog. This version uses the
AmigaDOS function Execute() therefore the RUN AmigaDOS command MUST be
in the C: directory!
----------------------------------------------------------------------------
This will search DH0: for the file PAINT_PROG and then search DH1: for
the files MyPics#? It will only search the current directories therefore
it will not go into any of the subdirectories on DH0: or DH1:
1> Where DH0:PAINT_PROG DH1:MyPics#? -t
----------------------------------------------------------------------------
This will search DH0: for the file PAINT_PROG and then search DH1: for
the files MyPics#? It will only search the current directories therefore
it will not go into any of the subdirectories on DH0: or DH1:. If any
files are found it will then run multiview on them.
1> Where DH0:PAINT_PROG DH1:MyPics#? -t -x "Multiview %s"
DISCLAIMERS:
***************
As of this version there is one known bug in Where. When you break
the program with CTRL-C RETURN not all of the memory used by Where is
returned to the system. I hope to have this bug fixed soon but thought I'd
release this EXCELLENT PROGRAM to the Amiga public RIGHT AWAY! I have not
found any other problems but Where has not been through the ACID TEST yet.
I am sure under low memory conditions Where will balk, but that is for
later.
Also the flags -c and -r are only partially implemented and should not be
used in this release.
COPYRIGHT NOTICE!
***********************
This program has a 1989 Copyright under the name John Brock Preston
and is not for commercial use without written consent from the author/holder
of the copyright. A written conscent can be obtained by submitting $25.00US
to the following address (Which may also allow you to get the latest updates
as well as other goodies!).
John Preston
508 E. Warren St.
Mt Pleasant, IA 52641
If you have any questions or suggestions please send mail and I will
try to answer them.
Thanks for your patronage,
John Preston, a starving Amiga programmer.
CEO Preston Enterprises
A Member of The HST Group.
* Amiga and AmigaDOS are trademarks of Commodore Business Machines.
* Lattice C 5.0, 6.0 is a product of Lattice Incorporated.
* UNIX is a product of AT&T
* All legal rights to Where are reserved by the original author and
unauthorized use of Where or this manual or the Where Icon without
written consent from the original author is prohibited.
Only Amiga Makes it Possible!
FIDONET: Call Amiga Depot (319)385-8424
Where is FREQable as the name WHERE154.LZH